package effectiveJava;

import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import java.util.TreeSet;

public class SetList {
	public static void main(String[] args) {
		Set<Integer> set = new TreeSet<Integer>();
		List<Integer> list = new ArrayList<Integer>();
		for (int i = -3; i < 3; i++) {
			set.add(i);
			list.add(i);
		}
		for (int i = 0; i < 3; i++) {
			set.remove(i);
			list.remove(i);
		}
		System.out.println(set + " " + list);
		System.out.println(new Integer[] {}.getClass() + " " + String.class);
	}

	private static int gg(String b,int... a) {
		if (a.length == 0)
			throw new ArrayIndexOutOfBoundsException("too few args");
		return a[0];
	}
}